import Vue from 'vue'
import App from './App.vue'
import router from './router/router'
import store from './store'
import axios from 'axios'
import echarts from 'echarts'
import '@/styles/index.scss' // global css
import '@/icons/index.js'
import './permission'
import Element from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import elDragDialog from '@/directive/el-dragDialog' // base on element-ui
import './filters'
import waves from '@/directive/waves'
import './components' //引入全局组件
import request from './api/request'
import http from './api/http'

import preview from 'vue-photo-preview'
import 'vue-photo-preview/dist/skin.css'
Vue.prototype.baseUrl='https://ceshi.ctbls.com/shop/'

Vue.use(preview)
Vue.use(request)
Vue.use(http)
Vue.config.productionTip = false
Vue.prototype.$http = axios
Vue.prototype.$echarts = echarts

Vue.use(elDragDialog)
Vue.use(waves)
// elDragDialog.install(Vue)
Vue.use(Element)
new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')
